// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import 'es6-promise'
import Vue from 'vue'
import ElementUI from 'element-ui'
// import 'element-ui/lib/theme-chalk/index.css'
import App from './App'
import store from './store'
// 需在引入Vue-router前引入Vuex，初始化$store供router.beforeResolve使用
import router from './router'

// 标签页布局组件名，用于排除独立页面，使独立页面不打开新标签页
router.tabedLayoutName = 'Layout'

Vue.config.productionTip = false
Vue.use(ElementUI)

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  components: {
    App
  },
  template: '<App/>'
})
